package cn.schoolwow.quickdao.test.module.business.user.dml.json.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.json.flow.add.AddUserJSONProcessFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.json.flow.compare.CompareUserJSONArrayFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.add.RebuildUserFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class CompareUserJSONTestCase2Flow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new RebuildUserFlow())
                .next(new AddUserJSONProcessFlow())
                .next(new CompareUserJSONArrayFlow())
                .execute();
    }

    @Override
    public String name() {
        return "比较用户数组是否存在于数据库2";
    }
}
